package com.student.service;

import com.student.dao.KeMapper;
import com.student.pojo.Ke;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author 是一个鸽子啊
 * @date 2020/4/14
 * @qq 364826415
 */
@Service
public class KeServiceImpl implements KeService {
    private KeMapper keMapper;
    @Autowired
    public void setKeMapper(KeMapper keMapper) {
        this.keMapper = keMapper;
    }

    @Override
    public List<Ke> queryKe() {
        return keMapper.queryKe();
    }

    @Override
    public int updateKe(Ke ke) {
        return keMapper.updateKe(ke);
    }

    @Override
    public List<Ke> queryKeByName(String keName) {
        return keMapper.queryKeByName(keName);
    }

    @Override
    public int deleteKe(int keID) {
        return keMapper.deleteKe(keID);
    }

    @Override
    public int addKe(Ke ke) {
        return keMapper.addKe(ke);
    }

    @Override
    public Ke queryKeByID(int keID) {
        return keMapper.queryKeByID(keID);
    }
}
